

<tagLib name="html" />
<include file="../Public/header" />
<div id="wrap"> <include file="../Public/top" />
  <div id="content">
    <div class="mainarea">
      <div class="maininner">
        <div class="bdrcontent">
          <form id="phpform" method="post" action="__URL__/insert" class="formtable" onsubmit="return $.formValidator.pageIsValid('1')">
            <input type="hidden" value="{.nid}" id="nid" name="nid" />
            <table width="100%" cellpadding="0" cellspacing="0" class="formtable"> 
			  <tr>
                <td width="80">留言内容：</td>
                <td><textarea name="content" rows="4" id="content1" style="width:360px;"></textarea></td>
              </tr>
			  <tr>
                <td>作者：</td>
                <td><input name="author" type="text" style="width:160px;" id="author"  /></td>
              </tr>
			  <tr>
                <td>E-mail：</td>
                <td><input name="email" type="text" style="width:260px;" id="email"  /></td>
              </tr>
			 
			  <tr>
                <td>回复：</td>
                <td><textarea name="reply" rows="4" id="reply" style="width:360px;"></textarea></td>
              </tr>
			 

              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" value="提交" class="submit" />
                  <input name="reset" type="reset" value="重置" class="submit" />
                  <input name="button" type="button" value="返回" onclick="javascript:history.go(-1);"  class="submit" /></td>
              </tr>
            </table>
          </form>
        </div>
        <br />
      </div>
    </div>
    <include file="../Public/menu" /> </div>
  <include file="../Public/footer" /> </div>
</body>
</html>

<script type="text/javascript">

$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	$("#title").formValidator({onshow:"请输入标题",onfocus:"标题长度最少为2个字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:4,max:50,onerror:"你输入的标题长度不正确,请确认"});
	$("#author").formValidator({onshow:"请输入你的名称",onfocus:"名称长度最少为2个字符",oncorrect:"恭喜你,你输对了"}).inputValidator({min:2,max:50,onerror:"你输入的名称长度不正确,请确认"});
	$("#email").formValidator({onshow:"请输入邮箱",onfocus:"邮箱6-100个字符,输入正确了才能离开焦点",oncorrect:"恭喜你,你输对了",defaultvalue:"@"}).inputValidator({min:6,max:100,onerror:"你输入的邮箱长度非法,请确认"}).regexValidator({regexp:"email",datatype:"enum",onerror:"你输入的邮件格式不正确"});;
//	$("#cTime").focus(function(){WdatePicker({skin:'whyGreen',oncleared:function(){$(this).blur();},onpicked:function(){ $(this).blur();}})}).formValidator({onshow:"请输入发布时间",onfocus:"你输入的发布时间，不能全部是0哦",oncorrect:"你输入的发布时间合法"}).inputValidator({min:"1900-01-01",type:"date",onerror:"日期必须在\"1900-01-01\"和\"2000-01-01\"之间"});//.defaultPassed();
//	$("#categoryID").formValidator({onshow:"请输入categoryID",onfocus:"categoryID至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的categoryID长度不正确,请确认"});
//	$("#downNum").formValidator({onshow:"请输入downNum",onfocus:"downNum至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的downNum长度不正确,请确认"});
//	$("#cTime").formValidator({onshow:"请输入cTime",onfocus:"cTime至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的cTime长度不正确,请确认"});
//	$("#os").formValidator({onshow:"请输入os",onfocus:"os至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的os长度不正确,请确认"});
//	$("#homePage").formValidator({onshow:"请输入homePage",onfocus:"homePage至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的homePage长度不正确,请确认"});
//	$("#size").formValidator({onshow:"请输入size",onfocus:"size至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的size长度不正确,请确认"});
//	$("#content1").formValidator({onshow:"请输入content",onfocus:"content至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的content长度不正确,请确认"});
});

</script>